
class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count += 1
        print('第%d次统计'%(Student.count))

stu1 = Student('a')
stu2 = Student('b')
stu3 = Student('c')
stu4 = Student('d')
stu5 = Student('e')
print(stu1.count)